home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Leser 15 / Amiga Plus Leser CD 15.iso / Tools / Development / PowerD_mui / modules / mui / toolbar_mcc.m < prev   
Encoding:
Text File  |  2002-03-13  |  4.7 KB  |  176 lines

  1. /*
  2. **
  3. ** $VER: Toolbar_mcc.h V15.6
  4. ** Copyright © 1997-00 Benny Kjær Nielsen. All rights reserved.
  5. **
  6. ** Translated into D by Miklós Németh
  7. **
  8. */
  9.  
  10. /*** Include stuff ***/
  11.  
  12. MODULE 'libraries/mui'
  13. MODULE 'utility/tagitem'
  14. MODULE 'intuition/classes'
  15.  
  16. CONST BKN_SERIAL =$fcf70000
  17.  
  18.  
  19. /*** MUI Defines ***/
  20.  
  21. #define MUIC_Toolbar 'Toolbar.mcc'
  22. #define ToolbarObject MUI_NewObjectA(MUIC_Toolbar,[TAG_IGNORE, 0
  23.  
  24. /*** Methods ***/
  25.  
  26. CONST MUIM_Toolbar_BottomEdge      =$FCF70007
  27. CONST MUIM_Toolbar_CheckNotify     =$FCF7000d
  28. CONST MUIM_Toolbar_DrawButton      =$FCF7000c
  29. CONST MUIM_Toolbar_KillNotify      =$FCF70002
  30. CONST MUIM_Toolbar_KillNotifyObj   =$FCF70003
  31. CONST MUIM_Toolbar_LeftEdge        =$FCF70008
  32. CONST MUIM_Toolbar_MultiSet        =$FCF70004
  33. CONST MUIM_Toolbar_Notify          =$FCF70001
  34. CONST MUIM_Toolbar_Redraw          =$FCF70005
  35. CONST MUIM_Toolbar_ReloadImages    =$FCF7000b
  36. CONST MUIM_Toolbar_RightEdge       =$FCF70009
  37. CONST MUIM_Toolbar_Set             =$FCF70006
  38. CONST MUIM_Toolbar_TopEdge         =$FCF7000a
  39.  
  40. /*** Method OBJECTs ***/
  41.  
  42. OBJECT MUIP_Toolbar_CheckNotify
  43.     MethodID:ULONG,
  44.     TrigButton:ULONG,
  45.     TrigAttr:ULONG,
  46.     TrigValue:ULONG
  47.  
  48. OBJECT MUIP_Toolbar_Edge
  49.     MethodID:ULONG,
  50.     Button:ULONG
  51.  
  52. OBJECT MUIP_Toolbar_KillNotify
  53.     MethodID:ULONG,
  54.     TrigButton:ULONG,
  55.     TrigAttr:ULONG
  56.  
  57. OBJECT MUIP_Toolbar_KillNotifyObj
  58.     MethodID:ULONG
  59.  
  60. OBJECT MUIP_Toolbar_MultiSet
  61.     MethodID:ULONG,
  62.     Flag:ULONG,
  63.     Value:ULONG,
  64.     Button:LONG
  65.  
  66. OBJECT MUIP_Toolbar_Notify
  67.     MethodID:ULONG,
  68.     TrigButton:ULONG,
  69.     TrigAttr:ULONG,
  70.     TrigValue:ULONG,
  71.     DestObj:PTR TO _Object,
  72.     FollowParams:ULONG
  73.  
  74. OBJECT MUIP_Toolbar_Redraw
  75.     MethodID:ULONG,
  76.     Changes:ULONG
  77.  
  78. OBJECT MUIP_Toolbar_ReloadImages
  79.     MethodID:ULONG,
  80.     Normal:PTR TO UBYTE,
  81.     Select:PTR TO UBYTE,
  82.     Ghost:PTR TO UBYTE
  83.  
  84. OBJECT MUIP_Toolbar_Set
  85.     MethodID:ULONG,
  86.     Button:ULONG,
  87.     Flag:ULONG,
  88.     Value:ULONG
  89.  
  90. /*** Special method values ***/
  91.  
  92. CONST MUIV_Toolbar_Set_Ghosted     =$04
  93. CONST MUIV_Toolbar_Set_Gone        =$08
  94. CONST MUIV_Toolbar_Set_Selected    =$10
  95.  
  96. CONST MUIV_Toolbar_Notify_Pressed    =0
  97. CONST MUIV_Toolbar_Notify_Active     =1
  98. CONST MUIV_Toolbar_Notify_Ghosted    =2
  99. CONST MUIV_Toolbar_Notify_Gone       =3
  100. CONST MUIV_Toolbar_Notify_LeftEdge   =4
  101. CONST MUIV_Toolbar_Notify_RightEdge  =5
  102. CONST MUIV_Toolbar_Notify_TopEdge    =6
  103. CONST MUIV_Toolbar_Notify_BottomEdge =7
  104.  
  105. /*** Special value for MUIM_Toolbar_Notify ***/
  106.  
  107. CONST MUIV_Toolbar_Qualifier =$49893135
  108.  
  109. /*** Special method flags ***/
  110.  
  111. /*** Attributes ***/
  112.  
  113. CONST MUIA_Toolbar_Description     =$FCF70016
  114. CONST MUIA_Toolbar_HelpString      =$FCF70017
  115. CONST MUIA_Toolbar_Horizontal      =$FCF70015
  116. CONST MUIA_Toolbar_ImageGhost      =$FCF70013
  117. CONST MUIA_Toolbar_ImageNormal     =$FCF70011
  118. CONST MUIA_Toolbar_ImageSelect     =$FCF70012
  119. CONST MUIA_Toolbar_ImageType       =$FCF70010
  120. CONST MUIA_Toolbar_ParseUnderscore =$FCF70018
  121. CONST MUIA_Toolbar_Path            =$FCF7001b
  122. CONST MUIA_Toolbar_Permutation     =$FCF7001a
  123. CONST MUIA_Toolbar_Qualifier       =$FCF7001c
  124. CONST MUIA_Toolbar_Reusable        =$FCF70019
  125.  
  126. /*** Special attribute values ***/
  127.  
  128. CONST MUIV_Toolbar_ImageType_File     =0
  129. CONST MUIV_Toolbar_ImageType_Memory   =1
  130. CONST MUIV_Toolbar_ImageType_Object   =2
  131.  
  132. /*** OBJECTures, Flags & Values ***/
  133.  
  134. CONST TP_SPACE =-2
  135. CONST TP_END   =-1
  136.  
  137. OBJECT MUIP_Toolbar_Description
  138.   Type:UBYTE,               /* Type of button - see possible values below (TDT_). */
  139.   Key:UBYTE,                /* Hotkey */
  140.   Flags:UWORD,              /* The buttons current setting - see the TDF_ flags */
  141.   ToolText:PTR TO UBYTE,    /* The text beneath the icons. */
  142.   HelpString:PTR TO UBYTE,  /* The string used for help-bubbles or MUIA_Toolbar_HelpString */
  143.   MutualExclude:ULONG       /* Buttons to be released when this button is pressed down */
  144.  
  145.  
  146. /*** Toolbar Description Types ***/
  147.  
  148. CONST TDT_BUTTON  =0
  149. CONST TDT_SPACE   =1
  150. CONST TDT_IGNORE  =2 // Obsolete
  151. CONST TDT_END     =3
  152.  
  153. CONST TDT_IGNORE_FLAG =128
  154.  
  155. /*** Toolbar Description Flags ***/
  156.  
  157. CONST TDF_TOGGLE      =$01 /* Set this if it's a toggle-button */
  158. CONST TDF_RADIO       =$02 /* AND this if it's also a radio-button */
  159. CONST TDF_GHOSTED     =$04
  160. CONST TDF_GONE        =$08 /* Make the button temporarily go away */
  161. CONST TDF_SELECTED    =$10 /* State of a toggle-button */
  162.  
  163. #define TDF_RADIOTOGGLE (TDF_TOGGLE|TDF_RADIO) /* A practical definition */
  164.  
  165. /* TDF_RADIO and TDF_SELECTED only makes sense
  166.    if you have set the TDF_TOGGLE flag.          */
  167.  
  168. /*** Toolbar Macros ***/
  169.  
  170. #define Toolbar_Button(flags, text)           TDT_BUTTON, NIL, flags, text, NIL, NIL
  171. #define Toolbar_KeyButton(flags, text, key)   TDT_BUTTON, key,  flags, text, NIL, NIL
  172. #define Toolbar_Space                         TDT_SPACE,  NIL, NIL,  NIL, NIL, NIL
  173. #define Toolbar_End                           TDT_END,    NIL, NIL,  NIL, NIL, NIL
  174.  
  175.  
  176.